<if condition="$filters">
    <include file="action/filters"/>
</if>
<form action="{:url('open')}" method="post">
    <table>
        <tr>
            <th>选择</th>
            <foreach name="fields" item="field">
            <th>{$field.title}</th>
            </foreach>
            <th>操作</th>
        </tr>
        <foreach name="list" item="item">
            <tr>
                <td><input type="checkbox" name="data_ids[{$item.id}]" id=""></td>
                <foreach name="fields" item="field">
                <td><?php echo $item[$field["name"]]; ?></td>
                </foreach>
                <td>
                    <foreach name="link_action_types['single']" item="link">
                        <a href="{:url('open',['action_id'=>$link['id'],'data_id'=>$item['id']])}">{$link.title}</a>
                    </foreach>
                </td>
            </tr>
        </foreach>
    </table>
    <p>
    <foreach name="link_action_types['nope']" item="link">
        <a href="{:url('open',['action_id'=>$link['id']])}">{$link.title}</a>
    </foreach>
    </p>
    <p>
    <foreach name="link_action_types['multi']" item="link">
        <button name="action_id" value="{$link.id}">{$link.title}</button>
    </foreach>
    </p>
</form>
